//
//@author jltxseo
// Created by junlintianxia on 2019/5/6.
//
#ifndef JNILEARNPRO_JAVALISTENER_H
#define JNILEARNPRO_JAVALISTENER_H


#include <jni.h>

class JavaListener {
public:
    JavaVM *vm;
    JNIEnv *env;
    jobject jobj;
    jmethodID jmethod;

public:
    JavaListener(JavaVM *vm, JNIEnv *env, jobject jobj);

    ~JavaListener();

    void onSuccess(const char *msg);

    JNIEnv * JNI_GetEnv(int *attach);

    int JNI_DelEnv();
};


#endif //JNILEARNPRO_JAVALISTENER_H
